export function capitalize(str:string) {  
  return str.charAt(0).toUpperCase() + str.slice(1);  
}  
  
export function truncate(str:string, length = 100, truncation = '...') {  
  return str.length > length ? str.slice(0, length) + truncation : str;  
}  